From 5c4f312285ad2373a1a96730a2b41c61b817ab51 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Mon, 5 Sep 2016 14:22:30 +0200 Subject: [PATCH] docfix: `extern crate` uses `lib.name`; default is post '-' => '_' substitution --- src/doc/manifest.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/doc/manifest.md b/src/doc/manifest.md index 675841784..b0354841f 100644 --- a/src/doc/manifest.md +++ b/src/doc/manifest.md @@ -484,7 +484,9 @@ specified. [lib] # The name of a target is the name of the library that will be generated. This -# is defaulted to the name of the package or project. +# is defaulted to the name of the package or project, with any dashes replaced +# with underscores. (Rust `extern crate` declarations reference this name; +# therefore the value must be a valid Rust identifier to be usable.) name = "foo" # This field points at where the crate is located, relative to the `Cargo.toml`. -- 2.30.2